﻿using System.ComponentModel.DataAnnotations;

namespace Shop.Model.Dto.Home
{
    /// <summary>
    /// 获取用户小程序参数
    /// </summary>
    public class WxaCodeDto
    {
        /// <summary>
        /// 路径
        /// </summary>
        [Required(ErrorMessage = "小程序路径不可为空")]
        public string Page { get; set; }

        /// <summary>
        /// 场景
        /// </summary>
        public string Scene { get; set; }

        /// <summary>
        /// 图片宽度
        /// </summary>
        public int With { get; set; } = 403;
    }
}
